package co.com.smart.eagle.entities;


import java.io.Serializable;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;


/**
 * The persistent class for the applications database table.
 * 
 */
@Entity
@Table(name="applications")
@NamedQuery(name="EagleSecurityApplications.findAll", query="SELECT w FROM EagleSecurityApplications w")
public class EagleSecurityApplications implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "aplication")
	private String aplication;

	//bi-directional many-to-one association to WlsSecurityResource
	@OneToMany(mappedBy="wlsSecurityApplications")
	private List<EagleSecurityResources> wlsSecurityResources;
	
	public EagleSecurityApplications() {
	}


	public String getAplication() {
		return aplication;
	}

	public void setAplication(String aplication) {
		this.aplication = aplication;
	}


	public List<EagleSecurityResources> getEagleSecurityResources() {
		return this.wlsSecurityResources;
	}

	public void setEagleSecurityResources(List<EagleSecurityResources> wlsSecurityResources) {
		this.wlsSecurityResources = wlsSecurityResources;
	}

	public EagleSecurityResources addEagleSecurityResource(EagleSecurityResources wlsSecurityResource) {
		getEagleSecurityResources().add(wlsSecurityResource);
		wlsSecurityResource.setWlsSecurityApplications(this);

		return wlsSecurityResource;
	}

	public EagleSecurityResources removeEagleSecurityResource(EagleSecurityResources wlsSecurityResource) {
		getEagleSecurityResources().remove(wlsSecurityResource);
		wlsSecurityResource.setWlsSecurityApplications(null);

		return wlsSecurityResource;
	}

}